/*
 * XML Type:  PinChangeResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PinChangeResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PinChangeResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PinChangeResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.PinChangeResponse
{
    
    public PinChangeResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName USERID$0 = 
        new javax.xml.namespace.QName("", "USERID");
    private static final javax.xml.namespace.QName DTCHANGED$2 = 
        new javax.xml.namespace.QName("", "DTCHANGED");
    
    
    /**
     * Gets the "USERID" element
     */
    public java.lang.String getUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "USERID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "USERID" element
     */
    public void setUSERID(java.lang.String userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERID$0);
            }
            target.setStringValue(userid);
        }
    }
    
    /**
     * Sets (as xml) the "USERID" element
     */
    public void xsetUSERID(net.ofx.types.x2003.x04.IdType userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(USERID$0);
            }
            target.set(userid);
        }
    }
    
    /**
     * Gets the "DTCHANGED" element
     */
    public java.lang.String getDTCHANGED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTCHANGED$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTCHANGED" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTCHANGED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTCHANGED$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTCHANGED" element
     */
    public boolean isSetDTCHANGED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTCHANGED$2) != 0;
        }
    }
    
    /**
     * Sets the "DTCHANGED" element
     */
    public void setDTCHANGED(java.lang.String dtchanged)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTCHANGED$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTCHANGED$2);
            }
            target.setStringValue(dtchanged);
        }
    }
    
    /**
     * Sets (as xml) the "DTCHANGED" element
     */
    public void xsetDTCHANGED(net.ofx.types.x2003.x04.DateTimeType dtchanged)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTCHANGED$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTCHANGED$2);
            }
            target.set(dtchanged);
        }
    }
    
    /**
     * Unsets the "DTCHANGED" element
     */
    public void unsetDTCHANGED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTCHANGED$2, 0);
        }
    }
}
